package org.ala.tiktools.rocketmq;

import java.io.Serializable;

/**
 * @author ala
 * @date 2024-11-29 09:26
 */
public class MQMessage implements Serializable {

    public static final long serialVersionUID = 1L;

    /**
     *  消息id
     */
    protected long id;
    /**
     *  发送消息时间戳
     */
    protected long sendTimestamp;
    /**
     *  消息体
     */
    protected Object[] body;

    public static MQMessage build(Object[] args) {
        MQMessage msg = new MQMessage();

        return msg;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public long getSendTimestamp() {
        return sendTimestamp;
    }

    public void setSendTimestamp(long sendTimestamp) {
        this.sendTimestamp = sendTimestamp;
    }

    public Object[] getBody() {
        return body;
    }

    public void setBody(Object[] body) {
        this.body = body;
    }
}
